"alt=" Wkiol1byc6siedymaacophzrvrc869.png "/>Four, pseudo-element selectorPseudo-element: First-letter-: First-letter selector to select the first letter of the specified selector-often used for typesetting details such as initials highlighting, sinking, etc.650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7D/E2/wKiom1byC32ysFjHAACGOSu3dec073.png "title=" Web.png "alt=" Wkiom1byc32ysfjhaacgosu3de
CSS selector description-link selector and css selector description
Original article: http://www.chinaz.com/web/2012/1017/278553.shtml
I believe everyone is familiar with CSS selector.
Recent projects to write their own front-end, re-learn the basics of the front-end.Generally in CSS style sheets, the above will be overwritten by the following, for example, the text will show Blue:So according to normal, the following CSS style, the test text should still be blueBut as a result, the test text is shown in yellow, the result of the tag Selector i
CSS creates the background:In order to make the style of the Web page more rich, but also in order to let the content and style of the page can be split apart, CSS is born from this idea, CSS is cascading style Sheets acronym, meaning cascading style sheet.With most of the css,html in the style of the label is discarde
First I'll show you how to use the imported CSS style in an HTML page.1. Inline style: 2. In-page style: set in the head tag3, External link method: First you have to prepare a good CSS style sheet outsideNext I'm going to introduce CSS cascading styles like everyoneElement selector: class
\TD Ii. Summary of today's content 1 CSS IntroductionHTML: Structural standardsCSS: Style standard cascading style sheet cascading style sheetRole: Define the effect of a Web pageJS: Behavioral Standards 2 CSS three ways to introduce1). Inline styleCons: Poor maintenance2) inner-connection styleStyle type= "Text/css" >div{Color:yellow;}p{Color:black;}3) Extern
{color: red; @ nest: not () {color: blue ;}// equivalent. foo {color: red;}: not (. foo) {color: blue ;}
[Note] the two error codes for @ nest selector are as follows:
.foo { color: red; @nest .bar { color: blue; }}.foo { color: red; @nest .bar, .baz { color: blue; }}
Last
Unfortunately, except that the CSS variable can be used in the new version of chrome
Three methods for placing CSS in HTML and CSS selector, css Selector(1) There are generally three methods to use CSS styles in HTML: 1 inline reference 2 internal reference 3 External reference. First, inline reference (also calle
Article Introduction: the class name intersection compound selector using CSS.
First look at the basic definition:
A composite selector is a selector of two or more basic selectors that are connected in different ways, mainly including the intersection selector,
Efficient CSS is not a new topic, nor is it a topic I have to regain, but it is the self in the sky after work, really interested in and always focus on a topic.
Many people either forget, or simply don't realize, that CSS can be efficient and may lead to low energy. However, we may not consider using inefficient CSS when you think you will have too little.
These
In CSS Layout page development, we will also use a very useful selector, you can use it for the overall layout of the declaration, this is the universal selector. Look at the following code:
The code is as follows
Copy Code
*{margin:0;padding:0;}
This form of code typically does not appear multiple times, once in the page c
Css knowledge (5) -- selector and css knowledge Selector1. Introduction
Starting from this section, we will enter the second part of this series-css and html combination-to put it bluntly, it is the selector.
CSS defines styles. H
CSS basics note (2) selector, css SelectorCSS Selector
Selector {style ;}
Each css style Declaration (Definition) consists of two parts, in the form of: the part before {} is the "selector
Backend code farmers front-end (CSS) Lesson 3: Selector and css SelectorI. selector 1. ID selector:
Syntax:First, there is a # sign in front of the ID selector, also known as the checkboard number or well number.See the following
CSS notes selector and CSS note SelectorReading directory
Describes the basic syntax format of CSS.
Introduction to basic Selector
Introduction to the combination Selector
Introduction to pseudo
CSS selector usage summary, css selector Summary
1. Element Selector
Definition: You can switch a style from one element to another.
Example: If you set an HTML style, the selector is usually an HTML element, such as p, h1, em, a,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.